package com.gzhryc.net_marketing.cloud.micro.api.dto.v1.member;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.gzhryc.common.api.SecurityResponse;

public class MemberAddressListResponse extends SecurityResponse<MemberAddressListResponse.Body> {

	private static final long serialVersionUID = 1L;

	public MemberAddressListResponse() {
		this.body = new Body();
	}

	public MemberAddressListResponse(Integer code) {
		this.body = new Body();
		this.code = code;
	}

	public MemberAddressListResponse(Integer code, String msg) {
		this.body = new Body();
		this.code = code;
		this.msg = msg;
	}

	public static class Body implements Serializable {

		private static final long serialVersionUID = 1L;

		private List<Item> items;
		private Long defId;
		
		public Body() {
			this.items = new ArrayList<Item>();
		}

		public List<Item> getItems() {
			return items;
		}

		public void setItems(List<Item> items) {
			this.items = items;
		}

		public Long getDefId() {
			return defId;
		}

		public void setDefId(Long defId) {
			this.defId = defId;
		}
	}
	
	public static class Item implements Serializable {
	
		private static final long serialVersionUID = 1L;
		
		private Long id;
		private String receiveName;
		private String receivePhone;
		private String province;
		private String city;
		private String cityArea;
		private String address;
		private Boolean isDefault;
		
		public Long getId() {
			return id;
		}
		public void setId(Long id) {
			this.id = id;
		}
		public String getReceiveName() {
			return receiveName;
		}
		public void setReceiveName(String receiveName) {
			this.receiveName = receiveName;
		}
		public String getReceivePhone() {
			return receivePhone;
		}
		public void setReceivePhone(String receivePhone) {
			this.receivePhone = receivePhone;
		}
		public String getProvince() {
			return province;
		}
		public void setProvince(String province) {
			this.province = province;
		}
		public String getCity() {
			return city;
		}
		public void setCity(String city) {
			this.city = city;
		}
		public String getCityArea() {
			return cityArea;
		}
		public void setCityArea(String cityArea) {
			this.cityArea = cityArea;
		}
		public String getAddress() {
			return address;
		}
		public void setAddress(String address) {
			this.address = address;
		}
		public Boolean getIsDefault() {
			return isDefault;
		}
		public void setIsDefault(Boolean isDefault) {
			this.isDefault = isDefault;
		}
	}

}
